#include <stdio.h>
#include <stdbool.h>

//https://leetcode.cn/problems/same-tree/、

struct TreeNode {
    int val;
    struct TreeNode *left;
    struct TreeNode *right;
};

//判断两棵树是否相同

bool isSameTree(struct TreeNode* p, struct TreeNode* q){
    if (p == NULL && q == NULL) {
        return true;
    } else if (p == NULL || q == NULL || p->val != q->val) {
        return false;
    }
    return isSameTree(p->left, q->left) && isSameTree(p->right, q->right);
}

int main() {

    return 0;
}


